

<form method="POST" id='newmember-edit-form' action="index.php?app=finance&ctl=bill_fee_item&act=doEdit" class="tableform">
        <{input type="hidden" name="pam_account[fee_item_id]" value=$pam_account.fee_item_id}>

    <div class="division">
        <table width="100%" >

            <tr><th><em class="red">*</em><{t}>费用项：<{/t}></th><td><{$pam_account.fee_item}></td></tr>
            <tr><th><em class="red">*</em><{t}>AX科目代码<{/t}></th><td><{input type="text" name="pam_account[AXfee_item_code]"  value=$pam_account.AXfee_item_code  size="20" }></td></tr>
        </table>
        <hr style="margin:5px 0;">
    </div>
</form>
<{area inject='.mainFoot'}>
<div class="table-action"><{button type="submit"  label=$___b2c="保存"|t:'b2c' id='newmember-edit-form-submit'}></div>
<{/area}>


<script>
    (function(){
        var _form = $('newmember-edit-form');
        var btn =$('newmember-edit-form-submit');
        var finder = finderGroup['<{$env.get.finder_id}>'];

        _form.store('target',{
            onComplete:function(){            

            },
            onSuccess:function(response){
                var hash_res_obj = JSON.decode(response);
                if (hash_res_obj.success != undefined && hash_res_obj.success != "")
                {
                    try{
                        var _dialogIns = btn.getParent('.dialog').retrieve('instance');
                    }catch(e){}

                    if(_dialogIns)
                    {
                        _dialogIns.close();
                        finder.refresh.delay(400,finder);
                    }
                }
                else
                {
                    //alert(hash_res_obj.error);
                }            
            }
        });

        btn.addEvent('click',function(){
            _form.fireEvent('submit',{stop:$empty});



        });

    })();

</script>


